Skip to content

Add shared bootstrap() and config test coverage (v0.10.2)#162

Merged
gvonness-apolitical merged 2 commits intomainfrom
fix/bootstrap-config-v0.10.2
Mar 13, 2026
Merged

Add shared bootstrap() and config test coverage (v0.10.2)#162
gvonness-apolitical merged 2 commits intomainfrom
fix/bootstrap-config-v0.10.2

Conversation

@gvonness-apolitical
Copy link
Copy Markdown
Contributor

Summary

  • Add shared bootstrap() function in src/config/bootstrap.ts — single idempotent entry point replacing inline initRuntimeConfig(toRuntimeConfig(loadConfig())) chains
  • Wire bootstrap() into all 4 entry points (MCP server, dashboard, session-start hook, init ingest). Fixes ingest command which was missing initRuntimeConfig() entirely
  • Add 32 new tests: config cache lifecycle (13), loader validation edge cases (15), bootstrap function (4)
  • Bump to v0.10.2, update CHANGELOG and SECURITY (supported versions >= 0.10.2)

Test plan

  • npm run build passes
  • npm test — 2589 tests passing
  • npm run lint — zero warnings
  • grep -r "initRuntimeConfig(toRuntimeConfig" src/ returns only bootstrap.ts doc comment

Shared bootstrap() replaces inline initRuntimeConfig(toRuntimeConfig(loadConfig()))
in all 4 entry points. Fixes ingest command missing initRuntimeConfig entirely.
Adds 32 new tests for config cache lifecycle, deep-merge, and validation edge cases.
@gvonness-apolitical gvonness-apolitical merged commit f93cb85 into main Mar 13, 2026
3 checks passed
@gvonness-apolitical gvonness-apolitical deleted the fix/bootstrap-config-v0.10.2 branch March 13, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant